﻿$def with (name)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>古体诗创作与分享</title>
    <script src="" type="text/javascript"></script>
    <noscript>Please enabled your broswer's javascript support!<br>请启用你的浏览器的javascript支持!</noscript>
</head>

<body>
<div id="body">

<div id="topDiv">
    <div class="right single"><span id="remind">你有 <span id="infoNum" class="num important">0</span> 条消息</span>
    </div>
</div>

<div id="headerDiv">
    <div class="worldTime right">
        <div class="center">世界时间</div>
        北京:<span id="beijingTime">
        $ date=ctime()
        $date</span>
    </div>
    <div id="logo">
        <img src="static/images/tangshi300.jpg"alt="唐诗三百首" />
    </div>
    <div class="loginInfo">
            欢迎你，<span  id="loginMsg">$name</span>
            <a href="/logout">
	    $if name=='游客':
		登陆
            $else:
                登出
            </a>            
    </div>
    <div id="menu">
        <ul class="menuitem">
            <li id="mitem0"><a target="_self" href="/mainpage.html">首页</a></li>
            <li id="mitem1"><a target="_self" href="/ai">AI写诗</a></li>
            <li id="mitem2"><a target="_self" href="/share">大作分享</a></li>
            <li id="mitem3"><a target="_self" href="/person">个人空间</a></li>
        </ul>
    </div
</div>

</div>
</body>
</html>

